// 导入request, 用于发送axios请求
import request from '@/utils/request'

// 获取病人的诊断记录, 病史, 全身状况表, 图片, 根据病人id
export const planGetRecordInfoService = (data) =>
  request.post('/designPlan/getRecordInfo', data)

// 删除病人记录, 根据诊断记录
export const planDeleteRecordService = (id) =>
  request.delete(`/designPlan/delete/${id}`)

// 新增病人记录
export const planAddRecordService = (data) =>
  request.post('/designPlan/add', data)

// 获取 mouthImages 口内图片
export const planGetMouthImagesService = (data) =>
  request.post('/designPlan/getMouthImages', data)

// 编辑 诊断记录
export const planEditRecordService = (data) =>
  request.put('/designPlan/editRecord', data)
